﻿using System;

namespace stdCall.Models
{
    /// <summary>
    /// 学生模型类：姓名，学号，被点名次数
    /// </summary>
    class Student
    {
        private String name;
        private String number;
        private int unluckyCallNum;
       /* private String message;*/

        public int UnluckyCallNum
        {
            get { return unluckyCallNum; }
            set { unluckyCallNum = value; }
        }
     
        public Student(String number, String name)
        {
            this.name = name;
            this.number = number;
        }

        public Student(String number, String name ,int unluckyCallNum)
        {
            this.name = name;
            this.number = number;
            this.unluckyCallNum = unluckyCallNum;
        }

        public String Number
        {
            get { return number; }
            set { number = value; }
        }

        public String Name
        {
            get { return name; }
            set { name = value; }
        }

        public String getMessage()
        {
            return (number + "," + name);
        }

 
    }
}
